package com.woniuxy02;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-05-22 14:06
 */
public class Test07 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入考试成绩");
        int score = sc.nextInt();
        if (score >= 90){
            System.out.println("考的不错，奖励");
        }
        //score =80     score >= 90 false  !(false)  true
        //score =90     score >= 90 true  !(true)  false
        if (!(score >= 90)) {
            System.out.println("惩罚");
        }
//        if (score >= 90){
//            System.out.println("考的不错，奖励");
//        }else{
//            System.out.println("惩罚");
//        }
        System.out.println("程序结束");
    }
}
